package com.service;

import com.aop.MultiTransaction;
import com.pepository.neo4j.MovieRepository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class Neo4jTestService {
    @Resource
    private MovieRepository movieRepository;

    @MultiTransaction
    public void createMovie(String movie, String personName, String mode, long pay) {
        movieRepository.createGraph(movie, personName, mode, pay);
        int i  = 1 / 0;
    }


}
